import service from '@/utils/request'

export const getSysObjList = (params) => {
  return service({
    url: '/sysObj/getSysObjList',
    method: 'get',
    params
  })
}

export const findSysObj = (params) => {
  return service({
    url: '/sysObj/findSysObj',
    method: 'get',
    params
  })
}

export const createSysObj = (data) => {
  return service({
    url: '/sysObj/createSysObj',
    method: 'post',
    data
  })
}

export const updateSysObj = (data) => {
  return service({
    url: '/sysObj/updateSysObj',
    method: 'put',
    data
  })
}

export const deleteSysObj = (data) => {
  return service({
    url: '/sysObj/deleteSysObj',
    method: 'delete',
    data
  })
}

export const getObjByAutorityId = (data) => {
  return service({
    url: '/sysObj/getObjByAutorityId',
    method: 'post',
    data
  })
}

export const addObjAuthority = (data) => {
  return service({
    url: '/sysObj/addObjAuthority',
    method: 'post',
    data
  })
}

export const getAllObjs = (data) => {
  return service({
    url: '/sysObj/getAllObjs',
    method: 'post',
    data
  })
}
